package com.guigu.www.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.www.pojo.MProcedure;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MProcedureMapper extends BaseMapper<MProcedure> {
//生产工序表
    //获取到生产总表的数据的id查询生产工序
    public List<MProcedure> queryBymprocedureid(int id);
    //查询当前工序的物料
    public MProcedure queryByMProcedureModule(int id);

    public void updateMoricedure(int parentid);

    public MProcedure queryBypreantid(Integer parentId);
    //修改生产表数据
    public void updatemprocedurebyid(@Param("mProcedure") MProcedure mProcedure,@Param("parentId") Integer parentId);
    //修改合格数量
    public int updaterealamount(@Param("id") int id,@Param("amount") int amount);
    //修改生产表数据
    public int updateMprkcedhringshow(@Param("amout") int amout,@Param("id") int id);
}
